home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 / Ham Radio 2000.iso / ham2000 / qex / psatool1 / psa.h < prev    next >
Text File  |  1994-09-25  |  2KB  |  63 lines

  1. // --------------------------------------------------------------------
  2. //             Header file for use with user interface    
  3. //
  4. //          "An Adaptive 100/200 Baud DSP Modem for HF Using a                }
  5. //               DSP-based PC Sound Card". QEX xxx  1994.             
  6. //                                         
  7. //                    (c) Johan Forrer, KC7WW                     
  8. //                             26553 Priceview Drive                               
  9. //                         Monroe, OR 97456                     
  10. // ---------------------------------------------------------------------------
  11.  
  12. #include <stdio.h>
  13. #include <stdlib.h>
  14. #include <conio.h>
  15. #include <time.h>
  16. #include <string.h>
  17. #include <ctype.h>
  18. #include <math.h>
  19. #include <dos.h>
  20.  
  21. #define IRQ7        0x0018
  22. #define INT       0x0F        // INT7=0x0F
  23.  
  24. /* WSS register address offsets from WSS base address. */
  25. #define WSS_STATUS               0x0003
  26. #define WSS_CODECINDEXADDR        0x0004
  27. #define WSS_CODECINDEXDATA        0x0005
  28. #define WSS_CODECSTATUS            0x0006
  29. #define WSS_CODECDATA            0x0007
  30.  
  31. /* PSS registers' io port address offsets from pssbase. */
  32. #define PSS_CONFIG    0x0010
  33.  
  34. #define PSS_DATA      0x0000
  35. #define PSS_STATUS    0x0002
  36. #define PSS_CONTROL   0x0002
  37. #define PSS_ID_VERS   0x0004
  38. #define PSS_IRQ_ACK   0x0004
  39. #define PSS_RESET         0x2000
  40.  
  41. // External function prototypes
  42.  
  43. extern unsigned int read_data(unsigned int);
  44. extern void write_data(unsigned int, unsigned int);
  45. extern unsigned long read_prog(unsigned int);
  46. extern void write_prog(unsigned int, unsigned long);
  47. extern int load_DSP_mem(char *);
  48. extern void checkdsptestprog(void);
  49. extern int checkDSPcard(int, int);
  50. extern int bootdsp(char *, char *, unsigned);
  51. extern void set1848state(unsigned char *);
  52. extern int putdspword(unsigned);
  53.  
  54.  
  55. // --------------------------------------------------------------------
  56. // NOTE: for this application the card base is assumed at 220h
  57. //       and the  Windows sound system base is assumed at 530h
  58. // --------------------------------------------------------------------
  59. extern unsigned int pssbase, wssbase;    // ports
  60.  
  61.  
  62.  
  63.